﻿#include"Goods.h"
#include"Drug.h"
Drug::Drug(int id) {
	switch (id) {
	case 10: {
		setid(id);
		setname("血莲丹");
		setintro("少量回血");
		backhp = 30;
		setprice(100);
		break;
	}
	case 11: {
		setid(id);
		setname("天魂丹");
		setintro("大量回血");
		backhp = 70;
		setprice(300);
		break;
	}
	case 12: {
		setid(id);
		setname("复灵丹");
		setintro("用于回蓝");
		backmp = 50;
		setprice(200);
		break;
	}
	case 13: {
		setid(id);
		setname("聚灵丹");
		setintro("用于临时增加攻击力");
		addatk_t = 50;
		setprice(300);
		break;
	}
	case 14: {
		setid(id);
		setname("生骨丹");
		setintro("用于永久增加攻击力");
		addatk_f = 40;
		setprice(1000);
		break;
	}
	case 15: {
		setid(id);
		setname("阴阳万寿丹");
		setintro("用于永久增加生命值");
		addhp_f = 40;
		setprice(1000);
		break;
	}
	default:
		break;
	}
}
int Drug::getaddatk_t() {
	return addatk_t;
}
int Drug::getbackhp() {
	return backhp;
}
int Drug::getaddatk_f() {
	return addatk_f;
}
int Drug::getaddhp_f() {
	return addhp_f;
}
int Drug::getbackmp() {
	return backmp;
}
void Drug::show() {
	cout << getname() << endl;
	cout << get_introduce() << endl;
	cout << "回合战斗中攻击力增加：" << getaddatk_t() << endl;
	cout << "基础攻击力增加：" << getaddatk_f() << endl;
	cout << "生命上限提升：" << getaddhp_f() << endl;
	cout << "回复生命量：" << getbackhp()<<endl;
	cout << "回复法力值：" << getbackmp() << endl;
}

